/**
 * Created by Administrator on 2016/7/12.
 */
function line(){
    myChart = echarts.init(document.getElementById('chart1'));
    option = {
        title : {
            text: '老师增长比例图',
            textStyle:{
                fontSize: 16,
                fontWeight: 'normal',
                color: '#56bdde'
            },
            x: 'center'
        },
        color:['#89e1f9'],
        tooltip : {

        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                boundaryGap : false,
                data : ['JAN','FEB','MAR','APR','MAY']
            }
        ],
        yAxis : [
            {
                type : 'value'
            }
        ],
        series : [
            {
                name:'增长数',
                type:'line',
                smooth:true,
                itemStyle: {normal: {areaStyle: {type: 'default'}}},
                data:[10, 20, 50, 100, 120]
            }
        ]
    };
// 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
}


